﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace VSWClient.Pages
{
    /// <summary>
    /// UserControlTaskBatches.xaml interaction logic
    /// </summary>
    public partial class UserControlTaskBatches : UserControl
    {
        public UserControlTaskBatches()
        {
            InitializeComponent();
        }

		public event EventHandler<EditBatchesEventArgs> EditBatches;
		void OnEditBatches(string batch_no)
		{
			this.EditBatches?.Invoke(this,new EditBatchesEventArgs(batch_no));
		}
		
		private void btn_EditBatches_Click(object sender, RoutedEventArgs e)
		{
			OnEditBatches(textBox_TaskBatchNo.Text.ToString());
		}
	}

	public class EditBatchesEventArgs : EventArgs
	{
		public string batch_No { get; }
		public EditBatchesEventArgs(string batch_no)
		{
			batch_No = batch_no;
		}
	}
}
